#!/bin/bash
#this script nukes your blog locally, so it requires confirmation
yn=""
while true; do
	echo "WARNING: You will lost your blog files! There's no undo for this action."
	echo "Are you sure you want to delete your local blog files? (y/n)"
	read -r yn
	case $yn in
	[Yy]* ) rm -rf entries/ public_html/
		rm -f nci.conf
		rm -f user.conf
		rm -f exclude.conf
		echo "Blog successfully deleted. F."
		exit 1
		;;
	[Nn]* )	echo "You're safe now."
		exit 1
		;;
	* ) echo "Error: Please answer just y/n.";;
	esac
done
